package com.wmyg.antifake.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 王卓逸
 * @program TODO
 * @description TODO
 * @create 2019-05-12
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PictureVo {

    public PictureVo(String pic) {
        String[] args = pic.split("&");
        this.url = args[0];
        this.width = Integer.parseInt(args[1]);
        this.hight = Integer.parseInt(args[2]);
    }

    private String url;

    private Integer width;

    private Integer hight;

}
